package com.me.springsimple.security.user;

import org.springframework.security.GrantedAuthority;
import org.springframework.security.userdetails.User;

public class SpringsimpleUser extends User{

	private String name;
	private String lastname;
	private String age;
	
	public SpringsimpleUser(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked, GrantedAuthority[] authorities
			,String name , String lastname , String age)
			throws IllegalArgumentException {
		
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,accountNonLocked, authorities);
		
		this.name = name;
		this.lastname = name;
		this.age = age;
		
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
}
